def moveZeroes(nums):
    i,j=0,0
    while j<len(nums):
        if nums[j]!=0:
            nums[i]=nums[j]
            i+=1
        j+=1
    for k in range(i,len(nums)):
        nums[k]=0
nums=[0,1,0,3,12]
moveZeroes(nums)
print(nums)
